package com.shuyun.xxx.guava.practice;

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by goodb on 2017/5/21.
 */
public class GCDemo {
    @Test
    public void run(){
        List<GCData> list = new ArrayList<>();
        for(int i = 0; i < 4; i++){
            list.add(new GCData(2));
        }
        list = null;
    }
}
class GCData{
    private byte[] bytes;
    public GCData(int i){
        bytes = new byte[i * 1024 * 1024];
    }
}